<%@ Register TagPrefix="uc1" TagName="Footer" Src="../Controls/Footer.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="UserList.aspx.vb" Inherits="MIMS_WRS.Web.UserList" %>
<%@ Register TagPrefix="uc1" TagName="HelpCtrl" Src="../Controls/HelpCtrl.ascx" %>
<%@ Register TagPrefix="cc1" Namespace="SR.WebControls" Assembly="SR.WebControls.PageSelect" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="../Controls/Header.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>User List</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<script language="javascript" src="../Js/popcalendar.js"></script>
		<script language="javascript" src="../Js/common.js"></script>
		<LINK href="../style.css" type="text/css" rel="stylesheet">
		<script language="JavaScript" src="../js/function.js" type="text/JavaScript"></script>
	</HEAD>
	<body leftMargin="0" topMargin="0" onload="MM_preloadImages('../images/b_ordersystemo.gif','../images/b_historyreporto.gif','../images/b_weeklyreporto.gif','../images/b_reporto.gif')"
		marginheight="0" marginwidth="0" MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<uc1:header id="Header1" runat="server"></uc1:header>
				<!-- Sub menu : start -->
				<tr>
					<td class="bgsubmenu" align="center" height="30">
						<div class="nlink">
							<table cellSpacing="0" cellPadding="0" width="96%" border="0">
								<tr>
									<td class="txtcolor2" align="right" width="98%">
										<p><strong><strong>[ <span class="txtnormal">List of Users</span></strong></strong> 
											/ <strong><strong><A class="txtcolor2" href="../Admin/User.aspx?usertype=1">Create new</A>
												</strong></strong><strong>] [ </strong><strong><strong><A href="../Customer/CustomerList.aspx">
														List of Customers</A></strong></strong> / <strong><A href="../Admin/User.aspx?usertype=0">
													Create new</A> ] </strong>
										</p>
									</td>
									<td class="txtcolor2" noWrap align="right" width="70"><span class="plink"><A href="javascript:history.back()"><IMG height="16" hspace="2" src="../images/b_back.gif" width="57" vspace="0" border="0"></A></span></td>
								</tr>
							</table>
						</div>
					</td>
				</tr>
				<tr>
					<td class="bglinetop1" height="1"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
				</tr>
				<!-- Sub menu : end -->
				<!-- DataTable: start -->
				<tr>
					<td class="bgwhite" vAlign="top" align="center" height="350">
						<table cellSpacing="0" cellPadding="0" width="96%" border="0">
							<tr>
								<td>
									<table cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr>
											<td vAlign="bottom" width="56%" height="25"><span class="title"><strong><strong>USERS LIST </strong>
													</strong></span>
											</td>
											<td vAlign="bottom" align="right" width="44%"><span class="plink"><strong><span class="txtsmall"><A href="#">
																<uc1:HelpCtrl id="HelpCtrl1" runat="server"></uc1:HelpCtrl></A></span></strong></span></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td height="5"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
							</tr>
							<tr>
								<td vAlign="top">
									<table cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr>
											<td class="border" height="1"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
										</tr>
										<tr>
											<td class="txtcolor1s" bgColor="#ffffff" height="1"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
										</tr>
										<tr>
											<td class="rowpage" height="25">
												<table cellSpacing="0" cellPadding="0" width="100%" border="0">
													<tr>
														<td width="44%" height="25"><span class="txtcolor1"></span></td>
														<td align="right" width="56%">
															<table class="txtcolor1" cellSpacing="0" cellPadding="2" border="0">
																<tr>
																	<td class="txtcolor1s" align="right"><strong><cc1:pageselect id="PageSelect1" runat="server" cssclass="plink" PageCssClass="txtcolor1s" PageSelectedCssClass="txtsmall"></cc1:pageselect></strong></td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td vAlign="top">
									<table class="border" cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr>
											<td vAlign="top"><asp:datagrid id="dgUserList" runat="server" BorderWidth="0px" BorderColor="#BFD6FB" CellSpacing="1"
													CellPadding="3" AllowSorting="True" AutoGenerateColumns="False" Width="100%" PageSize="20">
													<ItemStyle HorizontalAlign="Center" CssClass="bgrow1" VerticalAlign="Middle"></ItemStyle>
													<HeaderStyle HorizontalAlign="Center" CssClass="txtheader" VerticalAlign="Middle"></HeaderStyle>
													<Columns>
														<asp:TemplateColumn SortExpression="NAME" HeaderText="Name">
															<HeaderStyle Width="32%"></HeaderStyle>
															<ItemStyle HorizontalAlign="Left"></ItemStyle>
															<ItemTemplate>
																<asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NAME") %>' NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.US_ID_PK", "../Admin/User.aspx?Id={0}&usertype=1") %>' ID="Hyperlink1">
																</asp:HyperLink>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:BoundColumn DataField="EMAIL" SortExpression="EMAIL" HeaderText="Email">
															<HeaderStyle Width="30%"></HeaderStyle>
														</asp:BoundColumn>
														<asp:BoundColumn DataField="LOGIN_NAME" SortExpression="LOGIN_NAME" HeaderText="Username">
															<HeaderStyle Width="28%"></HeaderStyle>
														</asp:BoundColumn>
														<asp:TemplateColumn HeaderText="Remove">
															<HeaderStyle Width="10%"></HeaderStyle>
															<ItemTemplate>
																<a href="#" onClick="if(!confirmMsg('remove', 'this user', 'removeUserID', this)) return false;" name='<%# DataBinder.Eval(Container, "DataItem.US_ID_PK") %>' runat="server"
																	id="href1" onserverclick="RemoveUser_Command"><img src="../images/ic_del.gif" width="13" height="12" border="0"></a>
															</ItemTemplate>
														</asp:TemplateColumn>
													</Columns>
												</asp:datagrid></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td>
									<table cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr>
											<td class="txtcolor1s" bgColor="#ffffff" height="1"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
										</tr>
										<tr>
											<td class="rowpage" height="25">
												<table cellSpacing="0" cellPadding="0" width="100%" border="0">
													<tr>
														<td width="44%" height="25"><span class="txtcolor1"></span><span class="txtsmall"><strong>TOTAL:
																</strong></span><span class="txthighlight"><strong>
																	<asp:label id="lblTotalNumber" runat="server"></asp:label></strong></span><span class="txtsmall"><strong>
																	<asp:label id="lblTotalLabel" runat="server"></asp:label></strong></span><span class="txtcolor1"></span></td>
														<td align="right" width="56%">
															<table class="txtcolor1" cellSpacing="0" cellPadding="2" border="0">
																<tr>
																	<td class="txtcolor1s" align="right"><strong><cc1:pageselect id="PageSelect2" runat="server" cssclass="plink" PageCssClass="txtcolor1s" PageSelectedCssClass="txtsmall"></cc1:pageselect></strong></td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td class="border" height="1"><IMG height="1" src="../images/1pxl.gif" width="1"></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td align="right">&nbsp;</td>
							</tr>
						</table>
					</td>
				</tr>
				<!-- DataTable: end --><uc1:footer id="Footer1" runat="server"></uc1:footer></table>
			<input id="removeUserID" type="hidden" runat="server">
		</form>
	</body>
</HTML>
